/*
 * @Author: jixuanyu
 * @Date: 2022-03-16 09:57:53
 * @LastEditors: jixuanyu
 * @Description: 表格相关mixin
 */
export default {
  computed: {
    tableContentHeight() { // 返回值为不计算表格上表单部分高度的其他值
      return this.wininnerHeight - 138 - 16 - 16 - 40 - 55 - 50
    }
  },
  created() {
    let _this = this
    window.onresize = function() {
      _this.wininnerHeight = window.innerHeight // 监听resize 重新给wininnerHeight赋值
    }
  },
  data() {
    return {
      pageOpt: {
        page: 1,
        pageSize: 10,
        total: 0
      },
      wininnerHeight: window.innerHeight
    }
  }
}
